<template>
  <div>
    <p>count:{{ count }}</p>
    <p>电影列表总数{{ movieList.lenght }}</p>
    <button @click="increment({n:5})">累加</button>
    <p>电影长度在3-6的列表如下</p>
    <p v-for="item in movieName3_6 " :key="item.tvId">
    {{ item.name }}</p>
  </div>
</template>

<script>

import {mapMutations,mapState,mapGetters} from 'vuex'
export default {
name:"Count",
computed:{...mapState(["count","movieList"]),
          ...mapGetters(["movieName3_6"])
},
methods:{
    ...mapMutations(["increment"])
}
}
</script>

<style>

</style>